<extend name="Public/base"/>
<block name="header">

</block>
<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
   <div class="main-title">
       <h2>{:isset($info['id'])?'编辑':'新增'}商品规格</h2>
   </div>
   <form action="{:U()}" method="post" class="form-horizontal">

       <div class="form-item">
           <label class="item-label">规格名称:<span class="check-tips"></span></label>
           <div class="controls">
               <input type="text" class="text input-small" name="name" value="{$info.name|default=''}">
           </div>
       </div>
       <div class="form-item">
           <label class="item-label">所属商品类型：<span class="check-tips"></span></label>
           <div class="controls">
               <select name="type_id">
                   <option value="0">请选择</option>
                   <volist name="goods" id="vo">
                       <option value="{$vo.id}" <if condition="$vo.id eq $info.type_id"> selected="selected" </if>>{$vo.name}</option>
                   </volist>
               </select>
           </div>
       </div>
       <div class="form-item">
           <label class="item-label">规格项目:<span class="check-tips"></span></label>
           <div class="controls">
                <span style="color: #ff0000; font-weight: bold;">*</span>一行为一个规则项!
               <label class="textarea input-large" style="margin-top: 5px;"> <textarea id="auth-description" type="text" name="item">{$info.item}</textarea></label>
           </div>
       </div>
       <div class="form-item">
           <input type="hidden" name="id" value="{$info.id|default=''}">
           <button class="btn submit-btn ajax-post"  type="submit" target-form="form-horizontal">确 定</button>
           <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
       </div>
   </form>
</block>
<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('speci')}');
    </script>
</block>
